package designPattern.BridgePattern.p1;

//抽象的电脑类
public abstract class Computer {
    //和品牌进行组合，桥
    protected Brand brand;

    public Computer(Brand brand) {
        this.brand = brand;
    }

    public void info() {
        //自带品牌
        brand.info();
    }
}